//
//  GMPhotoView.h
//  VIPhotoViewDemo
//
//  Created by GL on 15/4/28.
//  Copyright (c) 2015年 vito. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, GMPhotoRightItemType){
    GMPhotoRightItemType_NO = 0,     // 不显示右侧按钮
    GMPhotoRightItemType_Share = 1,  // 右侧按钮为分享
    GMPhotoRightItemType_Delete = 2
} ;

@protocol GMPhotoViewDelegate <NSObject>
@optional

-(void)selectedRightItem:(UIImage*)image;
-(void)deletedImage;
-(void)tipDeletedImage;

@end

@interface GMPhotoView : UIView

@property (nonatomic, assign) id<GMPhotoViewDelegate>pDelegate;

-(instancetype)initWithFrame:(CGRect)frame andImage:(UIImage*)image;
-(instancetype)initWithFrame:(CGRect)frame andImage:(UIImage*)image rightItemType:(GMPhotoRightItemType)rightItemType;
-(instancetype)initWithFrame:(CGRect)frame andImageUrl:(NSString*)imageUrl;

-(void)showPhotoView;
-(void)hidenPhotoView;

@end
